package com.libertyville.domain.orgmng.validator;

import com.libertyville.domain.orgmng.Org;
import org.springframework.stereotype.Component;

@Component
public class CancelOrderValidator {

    public void validate(Org org) {
        if (!org.isEffectiveStatus())
            throw new RuntimeException("Org is not in effective status. So cannot be cancelled");
    }
}
